package application.model;

import mappings.AppliancesComposition;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "appliances_compositions")
public class AppliancesCompositionsModel
{
    private List<AppliancesCompositionModel> appliancesCompositionModels = new ArrayList<AppliancesCompositionModel>();

    @XmlElement(name = "appliance_composition")
    public List<AppliancesCompositionModel> getAppliancesCompositionModels()
    {
        return appliancesCompositionModels;
    }

    public void setAppliancesCompositionModels(List<AppliancesCompositionModel> appliancesCompositionModels)
    {
        this.appliancesCompositionModels = appliancesCompositionModels;
    }

    public void addApplianceComposition(AppliancesCompositionModel appliancesComposition)
    {
        appliancesCompositionModels.add(appliancesComposition);
    }
}
